SharePointPackageStore.UnregisterPackage Method

Unregister the package from the store. Once unregistered, the package cannot be viewed.

Parent Type: SharePointPackageStore

Namespace: Microsoft.LearningComponents.SharePoint

Assembly: Microsoft.LearningComponents.SharePoint.dll

Syntax
C#

public void UnregisterPackage (
PackageItemIdentifier packageId

)

Parameters

packageId

The PackageItemIdentifier of the package to unregister.

Exceptions
Exception type Condition
LearningStoreItemNotFoundException

Thrown if the packageId does not represent a package in the store.

LearningStoreConstraintViolationException

Thrown if the package cannot be deleted from LearningStore because there are other items in the store that depend upon it. For instance, a package for which there are attempts in LearningStore, cannot be unregistered.

Remarks